package com.xiaoyu.lingdian.service;

import java.util.List;
import com.xiaoyu.lingdian.entity.CoreShoppingCart;

public interface CoreShoppingCartService {

	/**
	* 添加
	* @param coreShoppingCart
	* @return
	*/
	public boolean insertCoreShoppingCart(CoreShoppingCart coreShoppingCart);

	/**
	* 修改
	* @param coreShoppingCart
	* @return
	*/
	public boolean updateCoreShoppingCart(CoreShoppingCart coreShoppingCart);

	/**
	* 删除
	* @param coreShoppingCart
	* @return
	*/
	public boolean deleteCoreShoppingCart(CoreShoppingCart coreShoppingCart);

	/**
	* 删除
	* @param coreShoppingCart
	* @return
	*/
	public boolean deleteCoreShoppingCartByUser(CoreShoppingCart coreShoppingCart);
	
	/**
	* 批量删除
	* @param list
	* @return boolean
	*/
	public boolean deleteBatchByIds(List<String> list);
	
	/**
	 * 查询用户购物车商品信息
	 * @param userId
	 * @return
	 */
	List<CoreShoppingCart> getCoreShoppingCartByUser(String userId);

}